package com.enjoy.rpc.client;

import com.enjoy.rpc.remote.SendSms;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {
    @Autowired
    private RpcClientFrame rpcClientFrame;

    @Bean
    public SendSms getSmsService(){
        return this.rpcClientFrame.getRemoteProxyObject(SendSms.class);
    }
}
